import { byId,addUser} from './mappers'
import { httpUtils } from '~~/server/utils/httpUtils'
export const addUserPojo = async (username: string) =>{
    const id = await addUser(username)
    return id
}
export const byTest = async (input: string)=>{
    return (await byId(Number(input)))
}
export const byTest3 = async (input: string)=>{
    return (await byId(Number(input)))
}

export const byTest2 = async ()=>{
    await httpUtils.get('/hello2','')
    await httpUtils.get('/hello2','')
    await httpUtils.get('/hello2','')
    return (await byId(1))
}
